package Practica

class User {
    String name
    String lastname
    String login
    String password
    
    static hasMany = [trips :Trip]
    
    static constraints = {
        
        name blank : false, size : 3..15
        lastname blank : false, size : 3..15                     //6.c
        login blank : false, size : 3..15
        password blank : false, size : 6..15, password : true
    }
    
    String toString(){
        "${name}+${lastname}"
    }

    
}
